<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
<head>
<meta charset="UTF-8">
<title>我的投资-稳盈宝</title>
<jsp:include page="/include/wchat/head.jsp"></jsp:include>

<link type="text/css" rel="stylesheet" href="/v2/wchat/resrc/css/account.css">
</head>
<body>
<div id="header"> <a href="/wchatAccount.do" class="backto">返回</a>
  <div class="title-sub">我的投资</div>
</div>
<div id="wrap">
  <div class="table invest-tb">
    <ul class="items title">
      <li class="c1">投资项目/投资时间</li>
      <li class="c2">年化收益</li>
    </ul>
    <s:if test="#request.wybInvestorRecordList!=null || #request.wybInvestorRecordList.size>0">
			<s:iterator value="#request.wybInvestorRecordList" var="bean">
				<ul class="items">
		             <li class="c1">
		                                稳盈宝${bean.borrowNumber}
		                
		                <span class="date">
		                	${bean.investTime}
		                </span>
		             </li>
		             <li class="c2">${bean.annualRate}%</li>
		          </ul>
			</s:iterator>
		<div class="page">
			<s:if test="#request.currentPage == 1">
			   	<span class="disabled pre"> 上一页 </span>
			</s:if>
			<s:else>
				<a href="javascript:;" onclick="return gotoPage(${currentPage - 1});" class="pre"> 上一页  </a>
			</s:else>
			
			<s:if test="#request.currentPage == #request.totalPageNum">
			   	<span class="disabled next"> 下一页 </span>
			</s:if>
			<s:else>
			   	<a href="javascript:;" onclick="return gotoPage(${currentPage + 1});" class="next"> 下一页 </a>
			</s:else>
		</div>
	</s:if>
	<s:else>
		<div class="no-project">
   	   		<div class="inner">暂无内容</div>
     	</div>
	</s:else>
  </div>
</div>
<form id="pageSearchForm" name="pageSearchForm" action="" method="post"></form>
<jsp:include page="/include/wchat/footer.jsp"></jsp:include>
<script type="text/javascript">
	function gotoPage(page){
	    $('#pageSearchForm').action = environment.basePath + 'getWybInvestorRecord.do';
	    var htmlStr = '<input type="hidden" name="currentPage" value="' + page + '" />';
	    $("#pageSearchForm").html(htmlStr).submit();
	}
</script>
</body>
</html>